package com.it.stockseata.service.impl;

import com.it.stockseata.mapper.StockMapper;
import com.it.stockseata.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class StockServiceImpl implements StockService {

   @Resource
    StockMapper stockMapper;


    public void reduct(Integer productId) {
        System.out.println("更新商品:"+productId);
        stockMapper.reduct(productId);
    }
}
